import 'package:flutter_template/domain/counter/counter.dart';
import 'package:flutter_template/domain/counter/i_counter_repository.dart';
import 'package:injectable/injectable.dart';

@injectable
class CounterUseCase {
  // final ICounterRepository _repository;

  // CounterUseCase(this._repository);

  // Future<Counter> getCounter() => _repository.fetchCounter();

  Future<Counter> incrementCounter(Counter counter) async {
    // final newCounter = counter.increment();
    // counter.value++;
    return Counter(counter.value++);
  }

  Future<void> decrementCounter(Counter counter) async {
    // final newCounter = counter.decrement();
    counter.value--;
  }
} 